package com.rtx.edi.platform.custom.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rtx.edi.platform.custom.bean.EdiCustomProcess;
import com.rtx.edi.platform.custom.mapper.EdiCustomProcessMapper;
import com.rtx.edi.platform.custom.service.EdiCustomProcessService;

@Service
public class EdiCustomProcessServiceImpl extends ServiceImpl<EdiCustomProcessMapper, EdiCustomProcess> implements EdiCustomProcessService{

	@Override
	public void selectList(Page<EdiCustomProcess> pageParam, EdiCustomProcess dto) {
		LambdaQueryWrapper<EdiCustomProcess> qw = Wrappers.lambdaQuery();
		qw.like(dto.getBeanname() != null,EdiCustomProcess::getBeanname, qw);
		qw.like(dto.getName() != null,EdiCustomProcess::getName, dto.getName());
		qw.like(dto.getType() != null,EdiCustomProcess::getType, dto.getType());
		baseMapper.selectPage(pageParam, qw);
	}
}
